import { defineFakeRoute } from "vite-plugin-fake-server/client";
// 模拟刷新token接口
// export default
 defineFakeRoute([
    {
        url: "/business/mainte/v2/mainte-contracts",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": "ok",
                "result": {
                    "data": [{
                        "id": 1,
                        "projectId": 2,
                        "projectName": "项目名称",
                        "unityName": 1,
                        "contractNO": "3123123",
                        "unityAddress": "发打饭的订单",
                        "beginDate": "2023-02-12",
                        "endDate": "2023-02-12",
                        "status": 1,
                        "annex": "https://1.pdf",
                        "circle": "1年"
                    }],
                    "total": 1
                }
            }  
        }
    }, {
        url: "/business/mainte/v2/mainte-contract",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": "ok",
                "result": {
                    "id": 1,
                    "projectId": 2,
                    "projectName": "项目名称",
                    "unityName": 1,
                    "contractNO": "3123123",
                    "unityAddress": "发打饭的订单",
                    "beginDate": "2023-02-12",
                    "endDate": "2023-02-12",
                    "status": 1,
                    "annex": "https://1.pdf",
                    "circle": "1年"
                }
            }
        }
    }, {
        url: "/business/mainte/v2/mainte-contract",
        method: "delete",
        response: () => {
            return {
                "code": 200,
                "msg": "删除成功",
                "result": null
            }
        }
    }, {
        url: "/business/mainte/v2/mainte-contract",
        method: "put",
        response: () => {
            return {
                "code": 200,
                "msg": "修改成功",
                "result": null
            }
        }
    }, {
        url: "/business/mainte/v2/mainte-contract",
        method: "post",
        response: () => {
            return {
                "code": 200,
                "msg": "添加成功",
                "result": null
            }
        }
    },
]);